<ion-view view-title="商品详情" id="goods-detail" hide-nav-bar="true">
  <ion-header-bar align-title="center" class="bar-calm">
    <div class="buttons">
      <button class="button head-button button-clear center-btn" ng-click="goBack()">
        <img src="img/order-commit/backIcon.png">
      </button>
    </div>
    <h1 class="title">商品详情</h1>
    <div class="buttons">
      <button class="button head-button button-clear center-btn" ng-click="getShareInfo($event)">
        分享
      </button>
    </div>
  </ion-header-bar>
  <ion-content>
    <slide-banner items="banners"></slide-banner>
    <div class="detail-container">
      <p class="good-title" ng-model="goods.title">{{goods.title}}</p>
      <p class="good-price" ng-model="goods.price"><span style="margin-right: 10px;">销售价:</span>¥{{goods.price}}</p>
      <p class="good-desc" ng-model="goods.description">{{goods.description}}</p>
    </div>
    <div class="more-detail" ng-if="images.length !=0">
      <div class="detail-title"><p>商品详情</p></div>
      <img ng-src="{{item.img}}" alt="" ng-repeat="item in images"/>
    </div>
    <div class="bottom-blank"></div>
  </ion-content>
  <div class="footer-container">
    <div class="footer-item" ng-click="goGoodsEdit()"><img src="img/goods-detail/edit.png" alt=""/><p>编辑</p></div>
    <div class="footer-item" ng-click="takeOff()" ng-if="isOnLine"><img src="img/goods-detail/take-off.png" alt=""/><p>下架</p></div>
    <div class="footer-item" ng-click="takeOn()" ng-if="!isOnLine"><img src="img/goods-detail/take-on.png" alt=""/><p>上架</p></div>
    <div class="footer-item" ng-click="remove()"><img src="img/goods-detail/del.png" alt=""/><p>删除</p></div>
  </div>
</ion-view>
